<?php

if (!defined("IN_OP"))
{
    exit("You can't access this file directly...");
}
$gametype = intval(getvar("gametype"));
if ($gametype != 0)
{
    switch ($g_gametype_3d[$gametype]['type'])
    {
        case 1 :
        case 2 :
        case 3 :
		case 4 :
            include_once( "class_3d/CheckMode_3d.php" );
            $chk = new CheckMode_3d($curruser['acl'], 1, $gametype);
            $chk->checkShow3dPage();
            unset($chk);
            break;
        default :
            exit("error gametype");
            break;
    }
}
echo '<link href="/tpl/static/bootstrap/css/bootstrap.css?ver=1221" rel="stylesheet" type="text/css">
	<script src="/tpl/static/js/jquery.3.1.1.min.js?ver=0227"></script>
	<script src="/tpl/static/bootstrap/js/bootstrap.min.js"></script>';
$tmd = new tmd_tpl();
$news = "";
$news_add = trim($conf->Get("news_th"));
$news = $news_add == "" ? "" : "<div class=\"container-fluid\">	<div class=\"row\"><div class=\"col-sm-12\"><div class=\"panel panel-default\"><div class=\"panel-body \"><fieldset><legend class='paperAll'>系统重大公告</legend><div class='td2'>{$news_add}</div></fieldset><br /><br />";
if ($g_init_mode_6h)
{
    $news_add = nl2br(trim($conf->Get("news")));
    $news .= $news_add == "" ? "" : "<fieldset><legend class='paper6h'>【六合彩】</legend><div class='td2'>{$news_add}</div></fieldset><br /><br />";
}
if ($g_init_mode_3d)
{
    foreach ($g_gametype_3d as $key => $value)
    {
        if ($key == 0 || $g_menu_enabled[$key] == 0)
        {
            continue;
        }
        $enTemp = $g_gametype_3d[$key]['en'];
        $chTemp = $g_gametype_3d[$key]['ch'];
        $news_add = nl2br(trim($conf->Get("news_{$enTemp}")));
        $news .= $news_add == "" ? "" : "<fieldset><legend class='paper{$enTemp}'>【{$chTemp}】</legend><div class='td2'>{$news_add}</div></fieldset><br /><br />";
    }
}
$news .="</div></div></div></div></div>";
$color = $conf->Get("newsClc");
$color = $color ? $color : "red";
/* echo "<style>fieldset{width:700px;} legend , div{padding:3px;} </style>";
  echo "<div id=\"showMynews\">" . $news . "</div>";
  echo "<script>";
  echo "function reMyTag(oObj){";
  echo " var str = oObj.innerHTML;";
  echo " str = str.replace(/\\133/g, \"<strong style=color:" . $color . ";>\");";
  echo " str = str.replace(/\\135/g, \"</strong>\");";
  echo " oObj.innerHTML = str;";
  echo "}";
  echo "reMyTag(document.getElementById(\"showMynews\"));";
  echo "</script>";
  $ui->footer(); */
$tmd->assign(array ('color' => $color, 'news' => $news));
$tmd->display('member_3d/memnew');